<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Register</title>
</head>
<body>
<h2>Register</h2>
<form th:action="@{/register}" method="post">
    <div>
        <label for="username">Username:</label>
        <input type="text" id="username" name="username" required="required"/>
    </div>
    <div>
        <label for="password">Password:</label>
        <input type="password" id="password" name="password" required="required"/>
    </div>
    <div>
        <label for="confirmPassword">Confirm Password:</label>
        <input type="password" id="confirmPassword" name="confirmPassword" required="required"/>
    </div>
    <div>
        <input type="submit" value="注册"/>
    </div>
</form>
<a href="/login">已有帐号? 点此登录</a>
</body>
</html>